﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Home.Domain.Entities
{
    public class Company
    {
        /// <summary>
        /// 公司简介Id
        /// </summary>
        [DisplayName("公司简介Id")]
        public int? Id { set; get; }
        /// <summary>
        /// 标题
        /// </summary>
        [Required(ErrorMessage = "标题不能为空")]
        [StringLength(50, ErrorMessage = "长度不能超过50个字符")]
        [DisplayName("标题")]
        public string Title { set; get; }
        /// <summary>
        /// 内容
        /// </summary>
        [Required(ErrorMessage = "内容不能为空")]
        [DisplayName("内容")]
        public string Body { set; get; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [Required(ErrorMessage = "创建时间不能为空")]
        [DisplayName("创建时间")]
        public DateTime? CreateDate { set; get; }
        /// <summary>
        /// 排序
        /// </summary>
        [DisplayName("排序")]
        public int? Sort { set; get; }

    }
}
